package com.yiibai.tutorial.javabasic.variable;
//example of abstract class that have method body
abstract class Bike3{
	Bike3(){
		System.out.println("bike is created");
	}
	abstract void run();
	void changeGear() {
		System.out.println("gear changed");
	}
}
class Honda extends Bike3{
	void run() {
		System.out.println("runing safely..");
	}
}
public class TestAbstraction2 {
		public static void main(String args[]) {
			Bike3 obj = new Honda();
			obj.run();
			obj.changeGear();
		}
}